.product-page-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

.main-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 769px) {
    .main-layout {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        gap: 25px;
        align-items: flex-start;
    }

    .right-column {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .right-column .info-box {
        margin-top: 0 !important;
    }
}

.recharge-selection-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: left;
    margin-bottom: 25px; /* প্রতিটি বক্সের নিচে গ্যাপ যোগ করা হলো */
}

/* Product Header Styles */
.product-header-box {
    margin-bottom: 25px;
    padding: 15px 25px !important;
}

.product-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-img-frame {
    width: 150px; /* ৩:২ রেশিও অনুযায়ী উইডথ বাড়ানো হলো */
    height: 100px; /* হাইট ১০০ পিক্সেল রাখা হলো */
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00d2ff;
    border-radius: 15px; /* ৪টা কোণা রাউন্ড */
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

.product-header-img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* ছবি যাতে পুরো বক্স জুড়ে থাকে এবং কোনো অংশ কাটা না যায় */
    display: block;
}

.product-header-title {
    font-family: 'B4UFFEU-Stylish', sans-serif;
    font-size: 26px;
    color: #00d2ff;
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.product-page-title {
    font-family: 'B4UFFEU-Normal', sans-serif;
    font-size: 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    line-height: 1;
}

.step-num {
    background: #00d2ff;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
    flex-shrink: 0;
}

.recharge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.recharge-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.recharge-item:hover {
    background: rgba(0, 210, 255, 0.15);
    border-color: #00d2ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
}

.recharge-item.selected {
    background: rgba(0, 210, 255, 0.3);
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    transform: scale(1.02);
    position: relative;
}

.recharge-item.selected::after {
    content: '\f058';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -10px;
    right: -10px;
    background: #00d2ff;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.recharge-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.multi-select-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.multi-select-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    user-select: none;
}

.multi-select-label input { display: none; }

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 210, 255, 0.5);
    border-radius: 6px;
    position: relative;
    transition: 0.3s;
}

.multi-select-label input:checked + .checkbox-custom {
    background: #00d2ff;
    border-color: #00d2ff;
}

.checkbox-custom::after {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 12px;
}

.multi-select-label input:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.multi-select-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 0 34px;
}

.diamond-amount { font-size: 16px; font-weight: bold; color: #fff; }
.price-amount { font-size: 14px; color: #00d2ff; font-weight: bold; transition: 0.3s; }

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.original-price {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
    font-weight: 500;
}

.price-amount.discounted {
    color: #00ff88; /* Greenish for discounted price */
}

.account-input-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-left: 5px;
}

.account-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.account-input:focus {
    background: rgba(0, 210, 255, 0.05);
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.input-error-msg {
    color: #ff4d4d;
    font-size: 12px;
    margin: 5px 0 0 5px;
    display: none; /* Initially hidden */
    font-weight: 500;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.payment-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 10px 10px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    aspect-ratio: 1 / 1.1;
    position: relative;
}

.payment-item img, .payment-video-box {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.payment-video-box {
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-name {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.payment-item:hover img, .payment-item.selected img,
.payment-item:hover .payment-video-box, .payment-item.selected .payment-video-box {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.payment-item:hover .payment-name, .payment-item.selected .payment-name {
    color: #00d2ff;
}

.payment-item.selected::after {
    content: '\f058';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: -8px;
    right: -8px;
    background: #00d2ff;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 2;
}

/* --- Total Box & Buy Button (NEW SLIM DESIGN) --- */
.total-box {
    margin-top: 30px;
    display: flex;
    flex-direction: column; /* পিসিতে একটির নিচে আরেকটি */
    align-items: center;
    gap: 15px;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.total-amount-container {
    text-align: center;
}

.total-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.total-price {
    font-size: 28px;
    font-weight: bold;
    color: #00d2ff;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.quantity-control {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px 12px; /* চিকন করা হলো */
    gap: 15px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    color: #00d2ff;
    background: rgba(0, 210, 255, 0.1);
}

.qty-input {
    width: 40px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    outline: none;
}

/* Chrome, Safari, Edge, Opera - Remove arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox - Remove arrows */
.qty-input[type=number] {
    -moz-appearance: textfield;
}

.final-buy-btn {
    background: #00d2ff;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
    overflow: hidden; /* আইকন স্লাইড করার জন্য */
}

/* পিসির জন্য ডিফল্ট: আইকন হাইড থাকবে */
.final-buy-btn i {
    opacity: 0;
    max-width: 0;
    margin-right: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

/* পিসিতে হোভার করলে আইকন স্লাইড করে আসবে */
.final-buy-btn:hover i {
    opacity: 1;
    max-width: 25px;
    margin-right: 10px;
}

.final-buy-btn:hover {
    background: #00b8e6;
    transform: translateY(-2px);
}

.final-buy-btn:hover {
    background: #00b8e6;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.5);
}

.final-buy-btn i {
    font-size: 20px;
    transition: 0.3s;
}

.final-buy-btn:hover i {
    transform: scale(1.2);
}

/* --- Rules & Info --- */
.terms-box { border: 1px solid rgba(0, 210, 255, 0.2); margin-top: 30px; }
.terms-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.lang-switch { display: flex; background: rgba(255, 255, 255, 0.05); padding: 4px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); }
.lang-btn { background: transparent; border: none; color: rgba(255, 255, 255, 0.5); padding: 4px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: bold; }
.lang-btn.active { background: #00d2ff; color: white; }
.rules-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rules-list li { font-size: 14px; color: rgba(255, 255, 255, 0.8); line-height: 1.6; display: flex; align-items: flex-start; gap: 10px; background: rgba(255, 255, 255, 0.03); padding: 10px 15px; border-radius: 8px; border-left: 3px solid rgba(0, 210, 255, 0.5); }
.rules-list li i { color: #00d2ff; margin-top: 4px; }

/* --- Mobile Queries --- */
@media (max-width: 768px) {
    .product-page-container { padding: 80px 10px 100px 10px; }
    .recharge-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .payment-grid { grid-template-columns: repeat(3, 1fr); }

    .total-box {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        padding: 15px !important;
        gap: 15px;
    }

    .total-price { font-size: 24px; }
    .qty-input { font-size: 16px; width: 30px; }
    .qty-btn { width: 30px; height: 30px; }

    .final-buy-btn {
        grid-column: 1 / 3;
        width: 100%;
        padding: 12px;
        font-size: 18px;
        justify-content: center;
    }

    /* মোবাইলে আইকন সবসময় শো থাকবে */
    .final-buy-btn i {
        opacity: 1 !important;
        max-width: 25px !important;
        margin-right: 10px !important;
    }
}

.how-to-order-container {
    margin-top: 35px; /* গ্যাপ বাড়ানো হলো */
    text-align: center;
}

.how-to-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease; /* ট্রানজিশন যোগ করা হলো */
}

.how-to-btn:hover {
    background: rgba(0, 210, 255, 0.1); /* হালকা নীল আভা */
    border-color: rgba(0, 210, 255, 0.4);
    transform: translateY(-2px); /* হালকা উপরে উঠবে */
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.15);
}

.how-to-btn span, .how-to-btn i {
    background-image: linear-gradient(to right, #00d2ff, #ffffff, #00d2ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }
